package com.qxzn.module.mine.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.lmc.WebActivity;
import com.qxzn.app.page.BaseActivity;
import com.qxzn.app.util.AppUtil;
import com.qxzn.module.mine.R;

public class AboutActivity extends BaseActivity {

    @Override
    protected int initLayout() {
        return R.layout.activity_about;
    }

    @Override
    protected void initView() {
        TextView version = findViewById(R.id.app_version);
        version.setText(AppUtil.getVersionName(this));
        findViewById(R.id.tv_xi_1).setOnClickListener(this);
        findViewById(R.id.tv_xi_2).setOnClickListener(this);
    }

    @Override
    protected void iniTitleBar() {
        tv_title.setText("");
    }

    @Override
    protected void initData(Bundle savedInstanceState) {

    }

    public void agreementClick(View view) {
    }

    public void policyClick(View view) {
    }

    @Override
    public void onClick(View view) {
        super.onClick(view);
        int id = view.getId();
        if (id == R.id.tv_xi_1) {
            WebActivity.start(mActivity,"https://qxzniot.com:8091/static/agreement.html","奇信康派用户协议");
        } else if (id == R.id.tv_xi_2) {
            WebActivity.start(mActivity,"https://qxzniot.com:8091/static/policy.html","奇信康派隐私政策");
        }
    }
}
